<template>
    <fieldset>

        <breadCrumd :data="data"></breadCrumd>
     <router-view></router-view>
    </fieldset>
</template>
<script setup>

import { getCurrentInstance,onMounted,ref } from 'vue';

let data=ref([])

onMounted(()=>{
    // 获取当前组件
    console.log(getCurrentInstance())
    let instance=getCurrentInstance()

    let $bus=instance.appContext.config.globalProperties.$bus;
    $bus.$on('breadChange',input=>{
        console.log(input)
        data.value=input
    })
})
</script>
